#include"Camara.h"
CCamara::CCamara()
{
	this->xcamara=0;
	this->ycamara=0;
	//getRECT();
}
RECT CCamara::getRECT()
{
	RECT rect;
	rect.left=xcamara;
	rect.top=ycamara;
	rect.right=xcamara+640;
	rect.bottom=rect.top+480;
	return rect;
}
void CCamara::Update(int x, int y)
{
	//getRECT();
	int _x=xcamara+320;
	if(x>_x) 
	{
		xcamara=x-320;
		//ycamara=y;
	}
}